#include<iostream>
#include<vector>

using namespace std;

class Solution {
public:
    void reverseString(vector<char>& s)
    {
        int n = s.size();
        int l = 0, r = n - 1;
        while (l<r)
        {
            swap(s[l++], s[r--]);
        }
    }
};